package com.huawei.hms.support.api.sns;

import com.huawei.hms.core.aidl.IMessageEntity;
import com.huawei.hms.support.api.PendingResultImpl;
import com.huawei.hms.support.api.client.ApiClient;
import com.huawei.hms.support.api.client.Result;
import com.huawei.hms.support.api.client.Status;
import com.huawei.hms.support.api.entity.sns.internal.SNSIntentResp;
import com.huawei.hms.support.log.HMSLog;

class HuaweiSnsApiImpl$2 extends PendingResultImpl<IntentResult, SNSIntentResp> {
    HuaweiSnsApiImpl$2(ApiClient apiClient, String str, IMessageEntity iMessageEntity) {
        super(apiClient, str, iMessageEntity);
    }

    public /* synthetic */ Result onComplete(IMessageEntity iMessageEntity) {
        return a((SNSIntentResp) iMessageEntity);
    }

    public IntentResult a(SNSIntentResp sNSIntentResp) {
        IntentResult intentResult = new IntentResult();
        intentResult.setStatus(Status.SUCCESS);
        intentResult.setIntent(sNSIntentResp.getIntent());
        HMSLog.i("HuaweiSnsApiImpl", "getGroupCreatorIntent onComplete");
        return intentResult;
    }
}
